package br.com.mooble.activitys;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import br.com.mooble.R;

import com.googlecode.androidannotations.annotations.Click;
import com.googlecode.androidannotations.annotations.EActivity;
import com.googlecode.androidannotations.annotations.Fullscreen;
import com.googlecode.androidannotations.annotations.NoTitle;
import com.googlecode.androidannotations.annotations.ViewById;

@NoTitle
@Fullscreen
@EActivity(R.layout.login)
public class Login extends Activity {

	@ViewById
	EditText etNome;
	@ViewById
	EditText etSenha;
	@ViewById
	Button btnAcesso;

	@Click({ R.id.btnAcesso })
	public void onClick(View view) {
		if (view == this.btnAcesso) {
			Intent intent = new Intent(this, Principal_.class);
			intent.putExtra("nomeUsuario", this.etNome.getText().toString());
			this.startActivity(intent);

		}

	}

	
}
